﻿<%-- 
    Copyright (C) Binod Nepal, Planet Earth Solutions Pvt. Ltd., Kathmandu.
	Released under the terms of the GNU General Public License, GPL, 
	as published by the Free Software Foundation, either version 3 
	of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
--%>

<%@ Page Title="Recover My Account" Language="C#" MasterPageFile="~/Classifieds/Main.Master"
    AutoEventWireup="true" CodeBehind="Recover.aspx.cs" Inherits="MixNP.Web.Classifieds.Account.Recover" %>

<asp:Content ID="Content1" ContentPlaceHolderID="StyleSheetContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptsContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">
    <asp:Panel ID="NotificationPanel" runat="server" Visible="false">
        <h1>
            Account Successfully Recovered
        </h1>
        <hr class="hr" />

        <p>
            Your account was successfully recovered. Please login now.
        </p>

        <p>
            <a href="/sign-in.mix">
                Click Here
            </a>
        </p>

    </asp:Panel>
    <asp:Panel ID="EmailRecoveryPanel" runat="server" Visible="false" CssClass="bpad12">
        <h1>
            Recover My Account
        </h1>
        <table style="width: 100%;">
            <tbody>
                <tr>
                    <td>
                        <label id="PasswordTextBox2_PasswordTextBox2Label" class="label" for="PasswordTextBox2">
                            New Password:
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="border-spacing: 0px; border-collapse: collapse; width: 100%;">
                            <tbody>
                                <tr style="height: 40px;">
                                    <td>
                                        <asp:TextBox ID="PasswordTextBox2" runat="server" CssClass="textbox wide" TextMode="Password"
                                            TabIndex="200" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="note">
                            Type new password for your account.
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="PasswordTextBox2"
                            CssClass="alert" Display="Dynamic" Text="This field is required." ErrorMessage="This field is requried" />
                        <hr class="hr">
                    </td>
                </tr>
            </tbody>
        </table>
        <table style="width: 100%;">
            <tbody>
                <tr>
                    <td>
                        <label id="ConfirmPasswordTextBox2_ConfirmPasswordTextBox2Label" class="label" for="ConfirmPasswordTextBox2">
                            Confirm Password:
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="border-spacing: 0px; border-collapse: collapse; width: 100%;">
                            <tbody>
                                <tr style="height: 40px;">
                                    <td>
                                        <asp:TextBox ID="ConfirmPasswordTextBox2" runat="server" CssClass="textbox wide"
                                            TextMode="Password" TabIndex="200" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="note">
                            Type the new password again.
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ConfirmPasswordTextBox2"
                            CssClass="alert" Display="Dynamic" Text="This field is required." ErrorMessage="This field is requried" />
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="ConfirmPasswordTextBox2"
                            ControlToCompare="PasswordTextBox2" EnableClientScript="true" ErrorMessage="Passwords do not match."
                            Operator="Equal" CssClass="alert" Display="Dynamic" ValidationGroup="SignUp" />
                        <hr class="hr">
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="Literal1" runat="server" />
                    </td>
                </tr>
            </tbody>
        </table>
        <asp:Literal ID="ErrorLiteral2" runat="server" />
        <asp:Button ID="RecoverButton2" runat="server" Text="Recover" TabIndex="300" OnClick="RecoverButton2_Click" />
    </asp:Panel>
    <asp:Panel ID="TextRecoveryPanel" runat="server" Visible="false" CssClass="bpad12">
        <h1>
            Recover My Account
        </h1>
        <hr class="hr" />
        <div id="placeHolder" runat="server">
        </div>
        <table style="width: 100%;">
            <tbody>
                <tr>
                    <td>
                        <label id="PasswordTextBox_PasswordTextBoxLabel" class="label" for="PasswordTextBox">
                            New Password:
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="border-spacing: 0px; border-collapse: collapse; width: 100%;">
                            <tbody>
                                <tr style="height: 40px;">
                                    <td>
                                        <asp:TextBox ID="PasswordTextBox" runat="server" CssClass="textbox wide" TextMode="Password"
                                            TabIndex="200" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="note">
                            Type new password for your account.
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:RequiredFieldValidator ID="PasswordRequiredFieldValidator" runat="server" ControlToValidate="PasswordTextBox"
                            CssClass="alert" Display="Dynamic" Text="This field is required." ErrorMessage="This field is requried" />
                        <hr class="hr">
                    </td>
                </tr>
            </tbody>
        </table>
        <table style="width: 100%;">
            <tbody>
                <tr>
                    <td>
                        <label id="ConfirmPasswordTextBox_ConfirmPasswordTextBoxLabel" class="label" for="ConfirmPasswordTextBox">
                            Confirm Password:
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="border-spacing: 0px; border-collapse: collapse; width: 100%;">
                            <tbody>
                                <tr style="height: 40px;">
                                    <td>
                                        <asp:TextBox ID="ConfirmPasswordTextBox" runat="server" CssClass="textbox wide" TextMode="Password"
                                            TabIndex="200" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="note">
                            Type the new password again.
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:RequiredFieldValidator ID="ConfirmPasswordRequiredFieldValidator" runat="server"
                            ControlToValidate="ConfirmPasswordTextBox" CssClass="alert" Display="Dynamic"
                            Text="This field is required." ErrorMessage="This field is requried" />
                        <asp:CompareValidator ID="ComparePasswordValidator" runat="server" ControlToValidate="ConfirmPasswordTextBox"
                            ControlToCompare="PasswordTextBox" EnableClientScript="true" ErrorMessage="Passwords do not match."
                            Operator="Equal" CssClass="alert" Display="Dynamic" ValidationGroup="SignUp" />
                        <hr class="hr">
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="ErrorLiteral" runat="server" />
                    </td>
                </tr>
            </tbody>
        </table>
        <asp:Button ID="RecoverButton" runat="server" Text="Recover" TabIndex="300" OnClick="RecoverButton_Click" />
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsContentPlaceHolderBottom"
    runat="server">
</asp:Content>
